home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / CommentText.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  575 b   |  20 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.UI;
  4. import java.awt.Font;
  5. import java.awt.Insets;
  6. import javax.swing.JTextArea;
  7. import javax.swing.text.JTextComponent;
  8.  
  9. public class CommentText extends JTextArea {
  10.    public CommentText(boolean var1) {
  11.       ((JTextComponent)this).setMargin(new Insets(3, 3, 3, 3));
  12.       ((JTextComponent)this).setEditable(!var1);
  13.       Font var2 = UI.getSrcFont();
  14.       if (var2 != null) {
  15.          ((JTextArea)this).setFont(var2);
  16.       }
  17.  
  18.    }
  19. }
  20.